package com.hexb.smh.entity.view;

import com.hexb.smh.utils.Converters;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author : hexb
 */
@Data
public class ProductPriceView {

    private Integer id;

    @ApiModelProperty("品牌Id")
    private Integer brandId;

    @ApiModelProperty("项目Id")
    private Integer productId;

    @ApiModelProperty("固定成本价")
    private String fixedCostPrice;

    @ApiModelProperty("可变成本价")
    private String volatileCostPrice;

    @ApiModelProperty("其它成本价")
    private String otherCostPrice;

    @ApiModelProperty("市场价")
    private String marketPrice;

    @ApiModelProperty("品牌名称")
    private String brandName;

    @ApiModelProperty("品牌logo")
    private String logo;

    public void setFixedCostPrice(BigDecimal fixedCostPrice) {
        this.fixedCostPrice = Converters.decimalAmountFormat(fixedCostPrice);
    }

    public void setVolatileCostPrice(BigDecimal volatileCostPrice) {
        this.volatileCostPrice = Converters.decimalAmountFormat(volatileCostPrice);
    }

    public void setOtherCostPrice(BigDecimal otherCostPrice) {
        this.otherCostPrice = Converters.decimalAmountFormat(otherCostPrice);
    }

    public void setMarketPrice(BigDecimal marketPrice) {
        this.marketPrice = Converters.decimalAmountFormat(marketPrice);
    }
}
